package com.hehua.web.strategy;

import java.util.Scanner;

public class CashClient {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入原价");
        double v = scanner.nextDouble();
        System.out.println("输入打折策略");
        String next = scanner.next();
        CashContext cashContext = new CashContext(next);
        double result = cashContext.getResult(v);
        System.out.println("结算价" + result);
    }
}
